A map of how a game is split into rooms and how it remembers anything between them and between plays - and which page covers which.
A game forgets things in two different ways, and this section has a page for each.
Knowing which of the two you are fighting tells you which page you need.
| You want to | Read | The short version |
|---|---|---|
| Send the player to another room, pick the effect that hides the swap, or carry one thing across | Moving between rooms | A room is one space with a size, some tiles and the objects you placed in it. Only one is loaded at a time. |
| Know what a room is made of, and how doors work | Rooms | The full list of what you place in a room, and what each setting does. |
| Play a scripted scene when the player walks into a room | Cutscenes | A cutscene is a timeline you build in the editor: camera moves, dialogue and effects. It takes over the game until it ends, and can be set to play only once. |
| Keep a value after the power is switched off | Saving a game | A save is a copy of named values written into the cartridge's own battery-backed memory. |
| The player | Does the game need to remember it? | Use |
|---|---|---|
| walks into the next room and comes back | The enemies they beat are back, because the room is rebuilt. To keep them beaten, write it down, or mark the room Persistent. | a global variable, save_set, or a Persistent room |
| takes their character into the next room | Only if that instance is marked persistent, or you carry it across with room_change_ext | persistent |
| turns the console off and plays tomorrow | Only what you saved | save_set, then save_commit |
save_set does not write to the cartridge. It only changes a working copy in memory. Nothing survives the power going off until you call save_commit. Saving a game explains why it is built this way.
A first game usually needs Moving between rooms well before it needs saving. Read Saving a game when the game is long enough that a player would be upset to lose it.